/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.jsf.view;

import com.jsf.entity.Document;
import com.jsf.rest.DocumentFacadeREST;
import java.util.List;
import javax.inject.Inject;
import javax.inject.Named;

/**
 *
 * @author gang
 */
@Named
public class DocumentView extends PageViewBean{
    private String test;
    
    @Inject
    private DocumentFacadeREST docRest; 
    
    private List<Document> docList;
//    
    private List<Document> filterList;
    
    private Document document;
    
    @Override
    protected void init() {
        log.debug("init success");
        newInit();
        newMethod();
    }
    
    private void newInit() {
//        document = new Document();
;       setTest("111");
    }

    private void newMethod() {
        findAll();
        
    }
    
    private void findAll() {
//        setDocList(docRest.findAll());
    }
    /**
     * @return the test
     */
    public String getTest() {
        return test;
    }

    /**
     * @param test the test to set
     */
    public void setTest(String test) {
        this.test = test;
    }

    /**
     * @return the docList
     */
    public List<Document> getDocList() {
        return docList;
    }

    /**
     * @param docList the docList to set
     */
    public void setDocList(List<Document> docList) {
        this.docList = docList;
    }

    /**
     * @return the filterList
     */
    public List<Document> getFilterList() {
        return filterList;
    }

    /**
     * @param filterList the filterList to set
     */
    public void setFilterList(List<Document> filterList) {
        this.filterList = filterList;
    }


    
}
